package com.itheima.homework5;

public class Laptop {
    public void switchOn(){
        System.out.println("笔记本开机");
    }
    public void switchOff(){
        System.out.println("笔记本关机");
    }
    public void peripheral(Peripheral p){
        p.connect();
        p.disconnect();
    }
}
